package com.yupi.mianshizhou.constant;

/**
 * Redis 常量
 */
public interface RedisConstant {

    String USER_SIGN_IN_REDIS_PREFIX = "user:signinS";

    /**
     * 获取用户签到记录的redis key
     * @param year
     * @param userId
     * @return
     */
    static String getUserSignInRedisKey(int year, long userId) {
        return String.format("%s:%s:%s", USER_SIGN_IN_REDIS_PREFIX,year,userId);
    }

}
